<?php
/** @var OrdenRequisicionController $this */
/** @var OrdenRequisicion $model */
$this->menu = array(
    array('label' => Yii::t('AweCrud.app', 'Manage'), 'icon' => 'list-alt', 'url' => array('admin')),
    array('label' => Yii::t('AweCrud.app', 'Create'), 'icon' => 'plus', 'url' => array('create'), 'itemOptions' => array('class' => 'active')),
//array('label' => "<div>" . CHtml::image(Yii::app()->baseUrl . "/images/topbar/nuevo.png") . "</div>" .  Yii::t('AweCrud.app', 'Create'), 'itemOptions'=>array('class'=>'active')),
);
?>

<div class="widget blue">
    <div class="widget-title">
        <h4><i class="icon-briefcase"></i> <?php echo Yii::t('AweCrud.app', 'View'); ?>  </h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <!--a href="javascript:;" class="icon-remove"></a-->
        </span>
    </div>
    <div class="widget-body">
        <?php
        $this->widget('bootstrap.widgets.TbDetailView', array(
            'data' => $model,
            'attributes' => array(
                array(
                    'name' => 'proveedor_id',
                    'value' => ($model->proveedor !== null) ? CHtml::link($model->proveedor, array('/proveedor/view', 'id' => $model->proveedor->id)) . ' ' : null,
                    'type' => 'html',
                ),
                array(
                    'name' => 'categoria_id',
                    'value' => ($model->categoria !== null) ? CHtml::link($model->categoria, array('/categoria/view', 'id' => $model->categoria->id)) . ' ' : null,
                    'type' => 'html',
                ),
                array(
                    'name' => 'producto_id',
                    'value' => ($model->producto !== null) ? CHtml::link($model->producto, array('/producto/view', 'id' => $model->producto->id)) . ' ' : null,
                    'type' => 'html',
                ),
                'cantidad',
                'precio_unitario',
                'fecha_creacion',
            ),
        ));
        ?>
    </div>
</div>